import Vue from 'vue'
import Router from 'vue-router'
import Forum from '../components/forum/forum.vue'
import Thread from '../components/forum/thread/thread.vue'
import Post from '../components/forum/post/post.vue'
import Group from '../components/group/group.vue'
import Home from '../components/home/home.vue'
import Test from '../components/Hello.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/forum',
      name: 'Forum',
      component: Forum,
      children: [{
        path: 'thread/:type',
        name: 'Thread',
        component: Thread
      }, {
        path: 'post',
        name: 'post',
        component: Post
      }]
    },
    {
      path: '/groups',
      name: 'Threads',
      component: Group
    }
  ]
})
